clear
use simresults--smoothed.dta

sort demmargin demcandideo

* Figure 2 *
twoway (line demwinsyms demwinasyms demcandideo) if demmargin==10

* Figure 3 *
twoway (line demwinsyms demwinasyms demcandideo),by(demmargin)